/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import com.swt.mto.thithu.model.LoadAjax;

import java.io.Serializable;

/**
 * The cache model class for representing LoadAjax in entity cache.
 *
 * @author tuan.nguyen
 * @see LoadAjax
 * @generated
 */
public class LoadAjaxCacheModel implements CacheModel<LoadAjax>, Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(7);

		sb.append("{loadAjaxId=");
		sb.append(loadAjaxId);
		sb.append(", loadWeb=");
		sb.append(loadWeb);
		sb.append(", ajax=");
		sb.append(ajax);
		sb.append("}");

		return sb.toString();
	}

	public LoadAjax toEntityModel() {
		LoadAjaxImpl loadAjaxImpl = new LoadAjaxImpl();

		loadAjaxImpl.setLoadAjaxId(loadAjaxId);

		if (loadWeb == null) {
			loadAjaxImpl.setLoadWeb(StringPool.BLANK);
		}
		else {
			loadAjaxImpl.setLoadWeb(loadWeb);
		}

		if (ajax == null) {
			loadAjaxImpl.setAjax(StringPool.BLANK);
		}
		else {
			loadAjaxImpl.setAjax(ajax);
		}

		loadAjaxImpl.resetOriginalValues();

		return loadAjaxImpl;
	}

	public long loadAjaxId;
	public String loadWeb;
	public String ajax;
}